package ru.nnstu.medialib.service;

import java.util.List;

import ru.nnstu.medialib.dao.VideoDAO;
import ru.nnstu.medialib.dao.VideoDAOImpl;
import ru.nnstu.medialib.domain.Video;

public class VideoServiceImpl implements VideoService {
	VideoDAO videoDAO;

	public VideoServiceImpl() {
		super();
		videoDAO = new VideoDAOImpl();
	}

	@Override
	public void addVideo(Video video) {
		videoDAO.saveVideo(video);
	}

	@Override
	public List<Video> listVideo() {
		return videoDAO.listVideo();
	}

	@Override
	public void removeVideo(Long id) {
		videoDAO.removeVideo(id);
	}

}
